$OpenBSD: patch-libapp_thread_cpp,v 1.1 2015/07/01 11:33:50 bluhm Exp $
--- libapp/thread.cpp.orig	Wed Feb 14 03:03:11 2001
+++ libapp/thread.cpp	Thu Jan  8 00:10:40 2015
@@ -254,6 +254,9 @@ CEventThread::~CEventThread( void )
     delete[] m_ppTimers;
     delete[] m_pWaitObjs;
     delete[] m_ppSocks;
+    m_ppSocks = NULL;
+    m_pWaitObjs = NULL;
+    m_ppTimers = NULL;
 }
 
 void CEventThread::Run( void )
